package com.spring.connection;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName: test
 * @Description: TODO
 **/
public class test {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("/applicationContext.xml");
        ConnectionPool bean = context.getBean(ConnectionPool.class);
        System.out.println(bean.getClassName());
        System.out.println(bean.getUrl());
        System.out.println(bean.getUsername());
        System.out.println(bean.getPassword());
        System.out.println(bean.getInitSize());
        System.out.println(bean.getMaxSize());

    }
}
